automate hyperparameter tuning
Automate Hyperparameter Tuning for Your Models
When we create our machine learning models, a common task that falls on us is how to tune them. People end up taking different manual approaches. Some of them work, and some don't, and a lot of time is spent in anticipation and running the code again and again. So that brings us to the quintessential question: Can we automate this process? A while back, I was working on an in-class competition from the "How to win a data science competition" Coursera course.
Automate Hyperparameter Tuning for your models
Now, we create the search space for hyperparameters for our classifier. To do this, we end up using many of hyperopt built-in functions which define various distributions. As you can see in the code below, we use uniform distribution between 0.7 and 1 for our subsample hyperparameter. We also give a label for the subsample parameterx_subsample. You need to provide different labels for each hyperparam you define.